﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CinemaSystem
{
    public partial class jilu : Form
    {
        public jilu()
        {
            InitializeComponent();
        }

        private void fanhui_Click(object sender, EventArgs e)
        {
            MainForm mainForm = new MainForm();
            mainForm.Show();
        }
        string sqlstr;
        private void jilu_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            sqlstr = string.Format("select * from [Order]");
            dt = DBHelper.GetDataTable(sqlstr);

            dataGridView1.AutoGenerateColumns = false;
            dataGridView1.DataSource = dt;
        }
    }
}
